.class public final Lcom/ninesky/widget/l;
.super Lcom/ninesky/widget/g;


# instance fields
.field private b:Landroid/view/LayoutInflater;

.field private c:Landroid/content/res/Resources;

.field private d:Landroid/view/ViewGroup;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    invoke-direct {p0, p1}, Lcom/ninesky/widget/g;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/widget/l;->c:Landroid/content/res/Resources;

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/widget/l;->b:Landroid/view/LayoutInflater;

    const v0, 0x7f030017

    invoke-virtual {p0, v0}, Lcom/ninesky/widget/l;->a(I)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f0c003f

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/ninesky/widget/l;->d:Landroid/view/ViewGroup;

    return-void
.end method


# virtual methods
.method public final a(IILandroid/view/View$OnClickListener;)Landroid/view/View;
    .locals 6

    iget-object v0, p0, Lcom/ninesky/widget/l;->c:Landroid/content/res/Resources;

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iget-object v0, p0, Lcom/ninesky/widget/l;->c:Landroid/content/res/Resources;

    invoke-virtual {v0, p2}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v0, p0, Lcom/ninesky/widget/l;->b:Landroid/view/LayoutInflater;

    const v3, 0x7f03001a

    iget-object v4, p0, Lcom/ninesky/widget/l;->d:Landroid/view/ViewGroup;

    const/4 v5, 0x0

    invoke-virtual {v0, v3, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/widget/QuickActionItem;

    invoke-virtual {v0, v1}, Lcom/ninesky/widget/QuickActionItem;->a(Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {v0, v2}, Lcom/ninesky/widget/QuickActionItem;->a(Ljava/lang/String;)V

    invoke-virtual {v0, p3}, Lcom/ninesky/widget/QuickActionItem;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v1, 0x7f02006b

    invoke-virtual {v0, v1}, Lcom/ninesky/widget/QuickActionItem;->setBackgroundResource(I)V

    iget-object v1, p0, Lcom/ninesky/widget/l;->d:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    iget-object v2, p0, Lcom/ninesky/widget/l;->d:Landroid/view/ViewGroup;

    invoke-virtual {v2, v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V

    return-object v0
.end method
